package com.whately.core.base.helper;

import org.apache.commons.lang3.StringUtils;
import org.slf4j.helpers.MessageFormatter;

/**
 * 短信模板
 */
public class SmsMessageTemplate {

    public static  String getReplacedContent(String content ,Object... params) {
        if(content==null){
            return StringUtils.EMPTY;
        }
        return MessageFormatter.arrayFormat(content, params).getMessage();
    }

}
